package com.xy.modular.basics.service.impl;

import com.xy.framework.base.dao.IBaseDao;
import com.xy.framework.base.service.BaseServiceImpl;
import com.xy.framework.exceptions.ValidateParamException;
import com.xy.framework.pager.PageRequest;
import com.xy.modular.basics.dao.DepMapper;
import com.xy.modular.basics.entity.Dep;
import com.xy.modular.basics.service.IDepService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("depService")
public class DepServiceImpl extends BaseServiceImpl<Dep, String> implements IDepService {

	@Resource
	private DepMapper depMapper;

	@SuppressWarnings("rawtypes")
	@Override
	protected IBaseDao getBaseDao() {
		return this.depMapper;
	}

	public List<Dep> getTreeDep(PageRequest pageRequest) {
		return depMapper.getTreeDep(pageRequest);
	}

	@Override
	public void validateEntity(Dep dep) throws ValidateParamException {
		// TODO Auto-generated method stub
		
	}

}
